package ip.dto;

import java.io.Serializable;
import java.util.Collection;

/***********************************************************************
 * Module:  Language.java
 * Author:  mojsilo
 * Purpose: Defines the Class Language
 ***********************************************************************/

public class LanguageDTO implements Serializable
{
	private static final long serialVersionUID = -5939463105608136708L;
	private long languageId;
	private java.lang.String name;
	private Collection movieSubtitles;
	private Collection movieMainLanguages;
	/**
	 * @return the languageId
	 */
	public long getLanguageId() {
		return languageId;
	}
	/**
	 * @param languageId the languageId to set
	 */
	public void setLanguageId(long languageId) {
		this.languageId = languageId;
	}
	/**
	 * @return the movieMainLanguages
	 */
	public Collection getMovieMainLanguages() {
		return movieMainLanguages;
	}
	/**
	 * @param movieMainLanguages the movieMainLanguages to set
	 */
	public void setMovieMainLanguages(Collection movieMainLanguages) {
		this.movieMainLanguages = movieMainLanguages;
	}
	/**
	 * @return the movieSubtitles
	 */
	public Collection getMovieSubtitles() {
		return movieSubtitles;
	}
	/**
	 * @param movieSubtitles the movieSubtitles to set
	 */
	public void setMovieSubtitles(Collection movieSubtitles) {
		this.movieSubtitles = movieSubtitles;
	}
	/**
	 * @return the name
	 */
	public java.lang.String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(java.lang.String name) {
		this.name = name;
	}
	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
		final String TAB = "    ";

		String retValue = "";

		retValue = "Language ( "
			+ super.toString() + TAB
			+ "languageId = " + this.languageId + TAB
			+ "name = " + this.name + TAB
			+ "movieSubtitles = " + this.movieSubtitles + TAB
			+ "movieMainLanguages = " + this.movieMainLanguages + TAB
			+ " )";

		return retValue;
	}

}